<template>
    <div class="test">
        <RightList :list="list" @select="handleSelect"/>
    </div>
</template>

<script>
import RightList from "./RightList.vue"
export default {
  name:"test",
  components:{
      RightList
  },
  data(){
      return {
          list:[
              {name:'a',isSelect:false},
              {name:'b',isSelect:true},
              {name:'c',isSelect:false,children:[
                  {name:'c-1',isSelect:false},
                  {name:'c-2',isSelect:false},
              ]},
              {name:'d',isSelect:false},
              ]
      }
  },
  methods:{
      handleSelect(item){
          console.log(item.name);
      }
  }
}
</script>

<style>

</style>